import request from '@/utils/request'

export function editPosition(data) {
  return request({
    url: '/portal/device',
    method: 'put',
    data
  })
}

export function getScene(params) {
  return request({
    url: '/portal/scene/page',
    method: 'get',
    params
  })
}

export function getDevice(params) {
  return request({
    url: '/portal/scene/device/page',
    method: 'get',
    params
  })
}

export function getGroupId(params) {
  return request({
    url: '/portal/scene/measure_group/by_scene',
    method: 'get',
    params
  })
}

export function getDistance(params) {
  return request({
    url: '/portal/scene/calc_distance/list',
    method: 'get',
    params
  })
}

